package org.jeecg.modules.demo.tcc.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;

/**
 * 
 * @TableName futures_inventory_info_syn
 */
@Table(name="futures_inventory_info_syn")
@Data
public class FuturesInventoryInfoSyn implements Serializable {
    /**
     * 
     */
    @Id
    private Integer id;

    /**
     * 
     */
    @Column(name = "futures_varieties")
    private String futuresVarieties;

    /**
     * 
     */
    @Column(name = "date_collection")
    private String dateCollection;

    /**
     * 
     */
    private String year2020;

    /**
     * 
     */
    private String year2021;

    /**
     * 
     */
    private String year2022;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FuturesInventoryInfoSyn other = (FuturesInventoryInfoSyn) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFuturesVarieties() == null ? other.getFuturesVarieties() == null : this.getFuturesVarieties().equals(other.getFuturesVarieties()))
            && (this.getDateCollection() == null ? other.getDateCollection() == null : this.getDateCollection().equals(other.getDateCollection()))
            && (this.getYear2020() == null ? other.getYear2020() == null : this.getYear2020().equals(other.getYear2020()))
            && (this.getYear2021() == null ? other.getYear2021() == null : this.getYear2021().equals(other.getYear2021()))
            && (this.getYear2022() == null ? other.getYear2022() == null : this.getYear2022().equals(other.getYear2022()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFuturesVarieties() == null) ? 0 : getFuturesVarieties().hashCode());
        result = prime * result + ((getDateCollection() == null) ? 0 : getDateCollection().hashCode());
        result = prime * result + ((getYear2020() == null) ? 0 : getYear2020().hashCode());
        result = prime * result + ((getYear2021() == null) ? 0 : getYear2021().hashCode());
        result = prime * result + ((getYear2022() == null) ? 0 : getYear2022().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", futuresVarieties=").append(futuresVarieties);
        sb.append(", dateCollection=").append(dateCollection);
        sb.append(", year2020=").append(year2020);
        sb.append(", year2021=").append(year2021);
        sb.append(", year2022=").append(year2022);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}